#-------------------------------------------------
#
# Project created by Bundle Creator
# Bundle Creator is part of BundleFrame which is 
# developed by KT team
# If you have any questions, please feel free to consult
# 15011502134#163.com
#
#-------------------------------------------------

QT       += xml
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport

TEMPLATE = lib
include($$PWD/../include/common.pri)

DEFINES += GISDATAOPERATE_LIBRARY

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

TARGET = GisDataOperate

INCLUDEPATH += $${DEV_HOME}/include
INCLUDEPATH += $${DEV_HOME}/include/HMPCore
INCLUDEPATH += $${DEV_HOME}/include/HMPBundleFrame
INCLUDEPATH += $${DEV_HOME}/include/service

CONFIG(debug,debug|release){
DESTDIR = $${DEST_DIR_D}/plugins
LIBS += -L$${DEST_DIR_D}
LIBS += -lHMPCore
LIBS += -lHMPBundleFrame
}

CONFIG(release,debug|release){
DESTDIR = $${DEST_DIR_R}/plugins
LIBS += -L$${DEST_DIR_R}
LIBS += -lHMPCore
LIBS += -lHMPBundleFrame
}

TRANSLATIONS = GisDataOperate.ts

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
        gisdataoperate.cpp \
#other sources

HEADERS += \
        gisdataoperate.h \

FORMS += \
#other headers


unix {
    target.path = /usr/lib
    INSTALLS += target
}

RESOURCES += \
    gisdataoperate.qrc

TRANSLATIONS = GisDataOperate_zh_cn.ts

HeadPath = $$absolute_path($$PWD\\i*.h)
CopyDir = $$absolute_path($${INCLUDE_DIR}\\service\\$$TARGET\\)

HeadPath = $$replace(HeadPath, /, \\)
CopyDir = $$replace(CopyDir, /, \\)

!exists($$CopyDir)
{
    mkpath($$CopyDir)
}

#QMAKE_POST_LINK += copy /Y  $$HeadPath $$CopyDir
#[serviceinterfaceend]
